﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WarOfDev.Core.ExceptionHandling.ExceptionDetails
{
    [Serializable]
    public abstract class Detail
    {
        private readonly int code;

        private readonly string message;

        public Detail()
        {

        }

        public Detail(int code, string message)
        {
            this.code = code;
            this.message = message;
        }

        public int ErrorCode
        {
            get { return this.code; }
        }

        public string ErrorMessage
        {
            get { return this.message; }
        }
    }
}
